const Mask = (zIndex: number, callback: () => {}) => {
  const maskEl = document.createElement('div')
  maskEl.className = 'mask'
  document.body.append(maskEl)
  maskEl.onclick = function() {
    (this as any).remove()
    if (callback) { callback() }
  }
}

export default Mask
